package com.meilishuo.message.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.meilishuo.message.dao.ThinkOrderdetailMapper;
import com.meilishuo.message.entity.common.PageForm;
import com.meilishuo.message.entity.common.PageResult;
import com.meilishuo.message.entity.data.ThinkOrderdetail;
import com.meilishuo.message.entity.data.ThinkOrderdetailExample;
import com.meilishuo.message.service.OrderDetailService;

@Service("orderDetailService")
public class OrderDetailServiceImpl implements OrderDetailService{
	
	@Autowired
	ThinkOrderdetailMapper thinkOrderdetailMapper;

	public PageResult<ThinkOrderdetail> getList(PageForm<Object> pageForm) {
//		PageResult<ThinkOrderdetail> pageResult = new PageResult<ThinkOrderdetail>();
//		pageResult.setPageNumber(pageForm.getPageNumber());
//		pageResult.setPageSize(pageForm.getPageSize());
//		ThinkOrderdetailExample example = new ThinkOrderdetailExample();
//		example.setPageSize(pageForm.getPageSize());
//		example.setStartNum(pageForm.getStartNum());
//		example.setOrderByClause("ctime desc");
//		pageResult.setTotalRows(thinkOrderdetailMapper.countByExample(example));
//		List<ThinkOrderdetail> orderdetails = thinkOrderdetailMapper.selectPageByExample(example);
//		pageResult.setRows(orderdetails);
		return null;
	}
	
	
}
